package top.resty.erp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.resty.erp.dao.IOutStorage;
import top.resty.erp.domain.OutStorage;
import top.resty.erp.domain.Storage;
import top.resty.erp.service.OutStorageService;

import java.util.List;

/**
 * <pre>
 *
 * </pre>
 *
 * @author : resty
 * @date : 2021年04月01 15:33
 */
@Service
public class OutStorageServiceImpl implements OutStorageService {
	
	@Autowired
	private IOutStorage iOutStorage;
	
	
	@Override
	public List<OutStorage> findOutStorageByCondition(Storage storage) {
		return iOutStorage.findOutStorageByCondition(storage);
	}
	
	@Override
	public List<OutStorage> findOutStoragesByOutId(String outId) {
		return iOutStorage.findOutStoragesByOutId(outId);
	}
	
	@Override
	public int saveOutStorages(List<OutStorage> storages) {
		return iOutStorage.saveOutStorages(storages);
	}
}
